import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

//import 'paper_chart_bar.dart';
import 'paper_chart_pie.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  // 横屏显示
  SystemChrome.setPreferredOrientations(
      [DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight]);
  // 全屏显示
  SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersiveSticky);
  runApp(const ChartsApp());
}

class ChartsApp extends StatelessWidget {
  const ChartsApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        body: Center(child: ICharts()),
      ),
    );
  }
}
